package com.zmm.weblog.common.entity;

import java.util.HashMap;
import java.util.Map;

public class DynamicEntity {
    private Map<String, Object> properties = new HashMap<>();

    public Object get(String propertyName) {
        return properties.get(propertyName);
    }

    public void set(String propertyName, Object value) {
        properties.put(propertyName, value);
    }

    @Override
    public String toString() {
        return properties.toString();
    }
}